#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QDebug>
#include <QLabel>

#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>

#include <Python.h>

#include "imgpreprocessing.h"

using namespace cv;

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

private slots:
    void on_selectPgotoPushButton_clicked();

    void on_makeDataPushButton_clicked();

    void on_pyPushButton_clicked();

    void on_RatePushButton_clicked();

    void on_pushButton_clicked();

private:

    Ui::MainWindow *ui;

    // path
    QString img_name;

    Mat src;

    // @brief display mat to label
    void LabelDisplayMat(QLabel *label,Mat mat);

};

#endif // MAINWINDOW_H
